package org.ljf.dto;

/**
 * @创建人 lIUJF
 * @创建时间 2018/12/21
 * @描述:
 */
//封装json结果
public class SecKillResult<T> {
	private boolean success;//判断请求是否成功
	private T data;
	private String error;

	public SecKillResult(boolean success, String error){
		this.success = success;
		this.error = error;
	}

	public SecKillResult(boolean success, T data){
		this.success = success;
		this.data = data;
	}

	public boolean isSuccess(){
		return success;
	}

	public void setSuccess(boolean success){
		this.success = success;
	}

	public T getData(){
		return data;
	}

	public void setData(T data){
		this.data = data;
	}

	public String getError(){
		return error;
	}

	public void setError(String error){
		this.error = error;
	}
}
